package com.example.academic_affairs_system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.academic_affairs_system.mapper.provider.AasClassProvider;
import com.example.academic_affairs_system.model.bo.ClassBrieflyInfoBO;
import com.example.academic_affairs_system.model.entity.AasClass;
import com.example.academic_affairs_system.model.vo.clazz.ClassStaticsVO;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.SelectProvider;

import java.util.List;

/**
 * Mapper 接口
 *
 * @author hjx
 * @since 2023-01-31
 */
public interface AasClassMapper extends BaseMapper<AasClass> {
  @SelectProvider(value = AasClassProvider.class, method = "getClassStudentDirectorStatics")
  List<ClassStaticsVO> getClassStudentDirectorStatics(@Param("directorId") long directorId);

  @SelectProvider(value = AasClassProvider.class, method = "getClassStudentByCoursesId")
  List<ClassBrieflyInfoBO> getClassByCoursesId(long coursesId);
}
